package com.job.service;

import com.job.common.ResponseResult;
import com.job.common.enums.ResultCodeEnum;
import com.job.common.exception.AvatarUpdateException;
import com.job.common.exception.LoginException;
import com.job.common.exception.RegisterException;
import com.job.common.exception.UserUpdateException;
import com.job.controller.req.LoginVo;
import com.job.controller.req.RegisterReqVO;
import com.job.controller.req.hrCorporationBandReqVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

public interface LoginService {

     ResponseResult<Map<String,String>> login(LoginVo loginVo) throws LoginException;

     ResponseResult<ResultCodeEnum> logout();

     ResponseResult<String> uploadTitle(MultipartFile file,Integer userId) throws IOException, AvatarUpdateException;

     ResponseResult<Long> register(RegisterReqVO registerReqVO) throws RegisterException;

     ResponseResult<ResultCodeEnum> hrCorporationBand(hrCorporationBandReqVO hrCorporationBandReqVO) throws UserUpdateException;
}
